package com.wuad.platformwuad.module.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wuad.platformwuad.module.system.entity.SysUserEntity;
import com.wuad.platformwuad.module.system.mapper.SysUserMapper;
import com.wuad.platformwuad.module.system.service.SysUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

/**
 * @author wuad
 * @date 2023年08月11日 14:18
 */
@Slf4j
@Service
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUserEntity selectById(String id) {
        return sysUserMapper.selectById(id);
    }

    @Override
    public List<SysUserEntity> getAll() {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("id", "1");
        return sysUserMapper.selectList("1", UUID.randomUUID().toString());
    }
}
